<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */


use App\Exception\Handler\BusinessExceptionHandler;
use App\Exception\Handler\RateLimitExceptionHandler;
use App\Exception\Handler\ValidationExceptionHandler;

return [
    'handler' => [
        'http' => array(
            // 验证器异常
            ValidationExceptionHandler::class,
            // 限流异常
            RateLimitExceptionHandler::class,
            // 业务异常
            BusinessExceptionHandler::class,
            // 默认异常
            Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
            // 通用兜底异常
            App\Exception\Handler\AppExceptionHandler::class,
        ),
    ],
];
